package com.adan.glmmember.feignClient;

import com.adan.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2023-05-07 13:20
 */

//告诉spring cloud这个接口是一个远程客户端，要调用coupon服务(nacos中找到)
@FeignClient("glm-coupon")  //服务名
public interface CouponClient {

    // 远程服务的url
    @RequestMapping("glmcoupon/coupon/openFeign")//注意写全优惠券类上还有映射
    public R testOpenFeign();


}
